<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
	<head>
		<title>封条管理及验证系统--安全防护管理</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
<%@ include file="/comm.jsp"%>
	<script language="javascript">
	$(document).ready(function() {
		$("#menu_1").mouseover(function() {
			$(this).css("background","#FFFFFF");
		});
		$("#menu_1").mouseout(function() {
			$(this).css("background","#EAF0FB");
		});
		$("#menu_2").mouseover(function() {
			$(this).css("background","#FFFFFF");
		});
		$("#menu_2").mouseout(function() {
			$(this).css("background","#EAF0FB");
		});
		$("#menu_1").click(function() {
			$("#hdfStatus").val("01");
			$('#safetyInfo_listAll').submit(); 
		});
		$("#menu_2").click(function() {
			$("#hdfStatus").val("02");
			$('#safetyInfo_listAll').submit(); 
		});
	});
</script>
	<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 270px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 800;
}

.menubar {
	width: 100px;
	cursor: hand;
}
-->
</style>

	<body>
		<s:form name="formpage" action="safetyInfo_listAll" namespace="/seal">
			<s:hidden id="hdfStatus" name="safetyInfoDto.status" />
			<div>
				<!-- 查询条件 -->
				<%@ include file="/messages.jsp"%>
				<fieldset>
					<legend>
						查询条件
					</legend>
					<table align="center" width="700px" border="0">
						<tr>
							<td>
								日期：						
								<input id="dStartdate" name="safetyInfoDto.fromDate"
									value='<s:date name="#request.safetyInfoDto.fromDate" format="yyyy-MM-dd" />'
									size="13" class="Wdate" type="text"
									onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'dEnddate\')}'})" />
								至
								<input id="dEnddate" name="safetyInfoDto.toDate"
									value='<s:date name="#request.safetyInfoDto.toDate" format="yyyy-MM-dd" />'
									size="13" class="Wdate" type="text"
									onFocus="WdatePicker({minDate:'#F{$dp.$D(\'dStartdate\')}'})" />
							</td>
							<td align="left">
								公司代码：
								<input name="safetyInfoDto.companyId"
									value="${safetyInfoDto.companyId}" type="text" maxlength="10"
									size="15" />
							</td>
							<td align="left">
								<input type="submit" class="button" id="ok" name="ok"
									value="查 询" />
							</td>
						</tr>
					</table>
				</fieldset>
			</div>
			<!-- 选项卡 -->
			<table border="0" cellpadding="0" cellspacing="1" class="tb_input"
				id="tblone1">
				<tr class="list_tr_item">
					<td id="menu_1" class="td_title menubar">
						防护中的任务
					</td>
					<td id="menu_2" class="td_title menubar">
						已验证的任务
					</td>
					<td id="menu_2" class="td_title">
						&nbsp;
					</td>
				</tr>
			</table>
			<!-- 查询结果 1 -->
			<s:if test="#request.safetyInfoDto.status=='01'">
				<div id="divTab1">
					<table border="0" cellpadding="5" cellspacing="1"
						class="tb_datalist">
						<tr align="center" height="28px" class="tr_title">
							<td>
								<b>业务单号</b>
							</td>
							<td>
								<b>创建时间</b>
							</td>
							<td>
								<b>封条号码</b>
							</td>
							<td>
								<b>设施名称</b>
							</td>
							<td>
								<b>设施编号</b>
							</td>
							<td>
								<b>施封人账户代码</b>
							</td>
							<!--
				<td>
					<b>施封人账户名称</b>
				</td>
				-->
						</tr>

						<s:iterator id="sa" value="#request.list1">
							<tr class="list_tr_item"
								onMouseOver="javascript:this.className='tr_selected';"
								onMouseOut="javascript:this.className='tr_even';">
								<td>
									<a
										href="<s:url action="safetyInfo_view"><s:param name="id">
							<s:property value="#sa.busiNo"/></s:param>
							</s:url>"><s:property
											value="#sa.busiNo" /> </a>
								</td>
								<td>
									<s:date name="#sa.activeDate" format="yyyy-MM-dd HH:mm" />
								</td>
								<td>
									<s:property value="#sa.seqId" />
								</td>
								<td>
									<s:property value="#sa.placeName" />
								</td>
								<td>
									<s:property value="#sa.placeNo" />
								</td>
								<td>
									<s:property value="#sa.userId" />
								</td>
							</tr>
						</s:iterator>
					</table>
				</div>
			</s:if>

			<s:if test="#request.safetyInfoDto.status=='02'">
				<div id="divTab2">
					<table border="0" cellpadding="5" cellspacing="1"
						class="tb_datalist">
						<tr align="center" height="28px" class="tr_title">
							<td>
								<b>业务单号</b>
							</td>
							<td>
								<b>创建时间</b>
							</td>
							<td>
								<b>封条号码</b>
							</td>
							<td>
								<b>设施名称</b>
							</td>
							<td>
								<b>设施编号</b>
							</td>
							<td>
								<b>施封人账户代码</b>
							</td>
							<!--
				<td>
					<b>施封人账户名称</b>
				</td>
				 -->
							<td>
								<b>验证人账户代码</b>
							</td>
							<!-- 
				<td>
					<b>验证人账户名称</b>
				</td>
				 -->
						</tr>

						<s:iterator id="sa" value="#request.list2">
							<tr class="list_tr_item"
								onMouseOver="javascript:this.className='tr_selected';"
								onMouseOut="javascript:this.className='tr_even';">
								<td>
									<a
										href="<s:url action="safetyInfo_view"><s:param name="id">
							<s:property value="#sa.busiNo"/></s:param>
							</s:url>"><s:property
											value="#sa.busiNo" /> </a>
								</td>
								<td>
									<s:date name="#sa.activeDate" format="yyyy-MM-dd HH:mm" />
								</td>
								<td>
									<s:property value="#sa.seqId" />
								</td>
								<td>
									<s:property value="#sa.placeName" />
								</td>
								<td>
									<s:property value="#sa.placeNo" />
								</td>
								<td>
									<s:property value="#sa.userId" />
								</td>
								<td>
									<s:property value="#sa.verifyUserid" />
								</td>
							</tr>
						</s:iterator>
					</table>
				</div>
			</s:if>
			<s:property value="#request.allowpage" escape="false" />
		</s:form>
	</body>
</html>
